package com.lgCore.util;//package com.lgCore.util;
//
//import com.lgCore.route.bean.RpcRouteServer;
//
//import java.net.InetSocketAddress;
//import java.util.ArrayList;
//import java.util.List;
//import java.util.Set;
//
//public class SocketAddressUtil {
//    /**
//     * InetSocketAddress类组装到轮训实体类，方便进行轮训
//     * @param addresses
//     * @return
//     */
//	public static List<RpcRouteServer> getInetSocketAddress(Set<InetSocketAddress>addresses){
//		List<RpcRouteServer> routeServers=new ArrayList<RpcRouteServer>();
//
//		for(InetSocketAddress inetSocketAddress:addresses){
//			RpcRouteServer rpcRouteServer=new RpcRouteServer(inetSocketAddress, 1);
//			routeServers.add(rpcRouteServer);
//		}
//		return routeServers;
//	}
//}
